import { SET_TEXT } from '../actions/actionType'


const text = (state = '', action) => {
  switch (action.type) {
    case SET_TEXT: //接受输入框文本的actions的具体处理
      state = action.text
      return state
      break;
    default:
      return state
  }
}
export default text